interface Person {
    firstName: string;
    lastName: string;
}

function hello(person: Person): string {
    return 'Hello, ' + person.firstName + " " + person.lastName;
}

let user = { firstName: "Wang", lastName: "Loen" };
document.body.innerHTML = hello(user);